package com.schoolET.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description: 管理员修改
 * @author: lin
 * @date: 2024/6/1 21:22
 **/
@Data
@ApiModel(value = "AdminInsertVO对象", description = "管理员修改")
public class AdminUpdateVO {

    @ApiModelProperty(value = "id",required = true)
    private Integer id;

    @NotBlank(message = "参数不能留白、不能只由空格、Tab、换行符组成")
    @NotNull(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",required = true)
    private String account;

    @NotNull(message = "密码不能为空")
    @Length(min = 6,max = 11,message = "密码必须在6-11位")
    @ApiModelProperty(value = "密码",required = true)
    private String password;

    @NotBlank(message = "参数不能留白、不能只由空格、Tab、换行符组成")
    @NotNull(message = "名字不能为空")
    @ApiModelProperty(value = "姓名",required = true)
    private String name;


    @NotBlank(message = "参数不能留白、不能只由空格、Tab、换行符组成")
    @NotNull(message = "电话不能为空")
    @ApiModelProperty(value = "电话",required = true)
    private String telephone;

    @NotBlank(message = "参数不能留白、不能只由空格、Tab、换行符组成")
    @NotNull(message = "邮箱不能为空")
    @ApiModelProperty(value = "邮箱",required = true)
    private String email;


}
